package comday05.itheima02;

public class Demo07 {
    public static void main(String[] args) {

        //调用方法
        int qq = 10;
        int b = 20;
        int max = getMax(qq,b);
        System.out.println(max);
    }


    //定义方法，求两个整数的较大值
    public static int getMax(int a,int b){
        if(a>b){
            return a;
        }else{
            return b;
        }
    }
}
